<?php
$a = 'hAFlm%F%%F533_%h3E3e8ab46En';
$b = 't%mei28253%95l3_Dce%1%86%-u';
$c = 't25..F%FE1223.Fk7a25a5825%l';
$d = 'pF.xc15778F91mae314E4E82E5l';
$e = '%%fio%E8%6348puy%a28be-3%E ';
$f = '32iam278225_83t%51a13b135- ';
/*$str = '';
for($i=0;$i<27;$i++){
	$str .= $a{$i} . $b{$i} . $c{$i} . $d{$i} . $e{$i} . $f{$i};
}
echo str_replace('^','0',urldecode($str));
*/
$str = '6hAFlm%%1%831%_9mae5b8%E216%-ut%mei2225%47519puy3ee57b425%lt25..FF%E567E513t%89%E4a72E5lpF.xc752%E%346_%h34c5c%6-3%E%%fio15F572475l3_D68E%56135-32iam272E8F393.Fka9685Eb46En';
//拿出总行数
$line 		=	substr($str,0,1);
//总字符数
$num  		= 	strlen($str) - 1;	
//长行每行字符数
$long_words	=	ceil($num / $line);	
//拿出短行数	
$shortline 	=  	$long_words * $line - $num;
//拿出长行数
$longline 	=	$line - $shortline;
//短行字符数
$short_words=	($num - $long_words * ($line - $shortline)) / $shortline;
//拿出内容
$content 	= 	substr($str,1);
//生成一个间隔数组作为提取模板
$dis[0]		=	0;
for($i=1;$i<$line;$i++){
	$dis[$i]	=	intval($dis[$i-1] +  ($i < $longline+1	?	$long_words	:	$short_words));
}
$result = '';
//开始用模板取
for($i=0;$i<$long_words;$i++){
	foreach($dis as $k=>$v){
		$result .=	@substr($content,$i + $v,1);
	}
}
echo(str_replace('^','0',urldecode(substr($result,0,strlen($result) + 1 - $shortline))));

